package com.csii.adhoc.system.auth.mapper;


import com.csii.adhoc.system.auth.AuthPo;
import com.csii.adhoc.system.auth.TMgnDirAuthVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AuthMapper {
    void deleteAuthByPrimaryKey(String authId);

    int insertOneAuth(AuthPo record);

    int insertSelective(AuthPo record);

    List<AuthPo> selectListAuth(AuthPo record);

    AuthPo selectOneAuth(AuthPo record);

    int updateByPrimaryKeySelective(AuthPo record);

    void updateAuthByKey(AuthPo record);

    List<TMgnDirAuthVo> getRoleAuthority(@Param("roleId") String roleId,@Param("type") String type);

    List<TMgnDirAuthVo> getUserAuthority(@Param("name") String name,@Param("type") String type);
}